﻿using System;
using System.Collections;
using System.Collections.Generic;
using DBA.Common;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    TeacherStudent
    ///开发者      :    
    ///建立时间    :    2012-8-29 7:30:50
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-8-29 7:30:50
    /// </summary>
        [OrmPropertyAttribute(TableName = "TeacherStudent",PrimaryKey = "TsID",PrimaryKeyType = "IDENTITY",ParameterType = "int")]
    public class TeacherStudent
    {
        #region 构造函数
        public TeacherStudent(){}
        
        public TeacherStudent(int TsID,int EmployeeID,string Year,short Grade,int StudentCount)
        {
           this._TsID = TsID;
           this._EmployeeID = EmployeeID;
           this._Year = Year;
           this._Grade = Grade;
           this._StudentCount = StudentCount;

        }
        #endregion
        
        #region 成员
        private int _TsID;
        private int _EmployeeID;
        private string _Year;
        private short _Grade;
        private int _StudentCount;
        private string _Detail;
        #endregion
        
        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "0")]
        public virtual int TsID
        {
            get { return _TsID; }
            set { _TsID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "varchar",ParameterLength = 10,IsNull = "1")]
        public virtual string Year
        {
            get { return _Year; }
            set { _Year = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "smallint",ParameterLength = 2,IsNull = "1")]
        public virtual short Grade
        {
            get { return _Grade; }
            set { _Grade = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int StudentCount
        {
            get { return _StudentCount; }
            set { _StudentCount = value; }
        }

        [OrmPropertyAttribute(ParameterType = "nvarchar", ParameterLength = 200, IsNull = "1")]
        public virtual string Detail
        {
            get { return _Detail; }
            set { _Detail = value; }
        }
        #endregion
    }
}